package com.atguigu.vod.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Classname ConstantVideoObject
 * @Description TODO
 * @Date 2022/9/3 14:28
 * @Created by ZHL17
 */
@Component
public class ConstantVideoObject implements InitializingBean {
    @Value("${aliyun.vod.file.keyid}")
    private String keyId;
    @Value("${aliyun.vod.file.keysecret}")
    private String keySecret;
    public static String KEY_ID;
    public static String KEY_SECRET;
    @Override
    public void afterPropertiesSet() throws Exception {
      KEY_ID=this.keyId;
      KEY_SECRET=this.keySecret;
    }
}
